__author__ = 'dik'

class AuthorContext:
    name = ""
    description = ""
    image_link = ""
    links = []

    def __init__(self):
        self.name = ""
        self.description = ""
        self.image_link = ""
        self.links = []


class WebLink:
    url = ""
    title = ""
    type = ""
    image = ""
    description = ""

    def __init__(self):
        self.description = ""
        self.image = ""
        self.title = ""
        self.type = ""
        self.url = ""


class AuthorListContext:
    author_list = []

    def __init__(self):
        self.author_list = []


class AuthorPreview:
    name = ""
    description = ""

    def __init__(self):
        self.description = ""
        self.name = ""


class MaterialListContext:
    materials_list = []

    def __init__(self):
        self.materials_list = []


class MaterialPreview:
    type = ""
    author_name = ""
    title = ""
    rate = 0
    is_favorite = False
    gtp_link = ""

    def __init__(self):
        self.author_name = ""
        self.gtp_link = ""
        self.is_favorite = False
        self.rate = 0
        self.title = ""
        self.type = ""


class MaterialContext(MaterialPreview):
    content = ""

    def __init__(self):
        MaterialPreview.__init__(self)
        self.content = ""



